package com.muqi.app.qlearn.student.ui;

import com.muqi.app.qlearn.fragments.RewardsAndMovableFragment;
import com.muqi.app.qlearn.student.BaseFragmentActivity;
import com.muqi.app.qlearn.student.R;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.FrameLayout;
import android.widget.TextView;

public class MoveActivity extends BaseFragmentActivity implements OnClickListener {
	
	private TextView mTitle;
	private FrameLayout mContainer;

	private RewardsAndMovableFragment rewardsFragment = null;
	
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.aty_reward_movable);
		
		
	}

	@Override
	protected void onInit() {
		mTitle = (TextView) findViewById(R.id.title);
		mContainer=(FrameLayout) findViewById(R.id.reward_container);
		
	   FragmentManager manager=getSupportFragmentManager();
	   FragmentTransaction transaction=manager.beginTransaction();
	   rewardsFragment=new RewardsAndMovableFragment();
	   Bundle bundle=new Bundle();
	   bundle.putInt("type", 1);
	   rewardsFragment.setArguments(bundle);
	   transaction.add(R.id.reward_container,rewardsFragment);
	   transaction.commit();
		

				
	}

	@Override 
	protected void onData() {
		
		
	}


	@Override
	public void onClick(View v) {
		
	}

	public void onBack(View v) {
		this.finish();
	}


}


